<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<!--[if lt IE 9]>
<script type="text/javascript" src="../Public/js/html5.js"></script>
<script type="text/javascript" src="../Public/js/respond.min.js"></script>
<script type="text/javascript" src="../Public/js/PIE_IE678.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="../Public/css/H-ui.css"/>
<link type="text/css" rel="stylesheet" href="../Public/css/H-ui.admin.css"/>
<link type="text/css" rel="stylesheet" href="../Public/font/font-awesome.min.css"/>
<!--[if IE 7]>
<link href="../Public/font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<title>添加管理员</title>
</head>
<body>
<nav class="Hui-breadcrumb"><i class="icon-home"></i> 首页 <span class="c-gray en">&gt;</span>修改密码<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="icon-refresh"></i></a></nav>
<div class="pd-20">
  <div class="Huiform">
    <form action="" method="post" id="form1">
      <table class="table radius table-striped table-hover  " >
        <tbody>
       
          <tr>
            <th width="200" class="text-r"><span class="c-red">*</span> 旧密码：</th>
            <td><input type="password" style="width:250px" class="input-text" placeholder="旧密码" value="" id="oldpwd" name="oldpwd">
			<span id="oldpwd_tips" class="c-red"></span>	
			</td>
          </tr>
   
          <tr>
            <th class="text-r"><span class="c-red">*</span> 新密码：</th>
            <td><input type="password" style="width:250px" class="input-text" placeholder="新密码" value="" id="newpwd" name="newpwd">
			<span id="newpwd_tips" class="c-red"></span>	
			</td>
          </tr>
         
          <tr>
            <th class="text-r"><span class="c-red">*</span> 确认新密码：</th>
            <td><input type="password" style="width:250px" class="input-text" placeholder="确认新密码" value="" id="newpwd2" name="newpwd2">
			<span id="newpwd2_tips" class="c-red"></span>	
			</td>
          </tr>
		
          <tr>
            <th></th>
            <td><button class="btn btn-success radius" id="submit" type="submit"><i class="icon-ok"></i>&nbsp;确定&nbsp;</button></td>
          </tr>
        </tbody>
      </table>
	      <input type="hidden" name="aid" value="{$info.aid}" />
    </form>
  </div>
</div>
<script type="text/javascript" src="../Public/js/jquery.min.js"></script>
<script type="text/javascript" src="../Public/js/jquery.form.js"></script>
<script type="text/javascript" src="../Public/js/H-ui.admin.js"></script> 

<script type="text/javascript">

$(function(){
	$("#submit").click(function(){
	  $("#oldpwd_tips").html("");
	  $("#newpwd_tips").html("");
	  $("#newpwd2_tips").html(""); 
     if($("#oldpwd").val()==""){
	     $("#oldpwd_tips").html("请输入旧密码");
		 return false;
	 }
     if($("#newpwd").val()==""){
	     $("#newpwd_tips").html("请输入新密码");
		 return false;
	 } 
	 if($("#newpwd2").val()==""){
	     $("#newpwd2_tips").html("请输入确认新密码");
		 return false;
	 } 
	 if($("#newpwd").val() !=$("#newpwd2").val()){
		 $("#newpwd2_tips").html("两次密码不相等");
		 return false; 
	 }

	  $('#form1').submit();
	 

	});
  
});
 
</script>
</body>
</html>